//
//  TrainTableViewCell.m
//  SpiritWalk
//
//  Created by shange1999 on 16/3/14.
//  Copyright © 2016年 王鑫. All rights reserved.
//

#import "TrainTableViewCell.h"

@implementation TrainTableViewCell


-(void)layoutSubviews{

    [self.savepath sd_setImageWithURL:[NSURL URLWithString:self.receiveModel.savepath]];
    self.subject_name.text = self.receiveModel.subject_name;
    if ([self.traning_difficult.text isEqualToString:@"1"]) {
         self.traning_difficult.text = @"初级";
    }else if ([self.traning_difficult.text isEqualToString:@"2"]){
    self.traning_difficult.text = @"中级";
    }else{
    self.traning_difficult.text = @"高级";
    }

    self.traning_day.text = [NSString stringWithFormat:@"训练天数%@",self.receiveModel.traning_day];
    
    self.traning_site.text = [NSString stringWithFormat:@"训练部位:%@",self.receiveModel.traning_site];

    self.desc.numberOfLines=0;
    self.desc.text = self.receiveModel.desc;
    
}




- (void)awakeFromNib {
    // Initialization code
       self.desc.numberOfLines=0;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
